package com.hanggold.springboot.lesson4.container;


import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.util.Set;


/**
 * 通过jsr servlet规范进行记载
 *
 * servlet3.0规范会通过spi加载
 *
 * javax.servlet.ServletContainerInitializer 服务
 *
 */
public class MyServletContainerInitializer  implements ServletContainerInitializer {

    @Override
    public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException {

        System.out.println("根据jsr规范加载自定义的容器处理");

        System.out.println("spi记载数据");





    }
}
